﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200015F RID: 351
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuyBpLevelScRsp : IMessage<BuyBpLevelScRsp>, IMessage, IEquatable<BuyBpLevelScRsp>, IDeepCloneable<BuyBpLevelScRsp>, IBufferMessage
	{
		// Token: 0x170004B1 RID: 1201
		// (get) Token: 0x06000FDC RID: 4060 RVA: 0x0002EBF8 File Offset: 0x0002CDF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuyBpLevelScRsp> Parser
		{
			get
			{
				return BuyBpLevelScRsp._parser;
			}
		}

		// Token: 0x170004B2 RID: 1202
		// (get) Token: 0x06000FDD RID: 4061 RVA: 0x0002EBFF File Offset: 0x0002CDFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuyBpLevelScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004B3 RID: 1203
		// (get) Token: 0x06000FDE RID: 4062 RVA: 0x0002EC11 File Offset: 0x0002CE11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuyBpLevelScRsp.Descriptor;
			}
		}

		// Token: 0x06000FDF RID: 4063 RVA: 0x0002EC18 File Offset: 0x0002CE18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyBpLevelScRsp()
		{
		}

		// Token: 0x06000FE0 RID: 4064 RVA: 0x0002EC20 File Offset: 0x0002CE20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyBpLevelScRsp(BuyBpLevelScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000FE1 RID: 4065 RVA: 0x0002EC45 File Offset: 0x0002CE45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyBpLevelScRsp Clone()
		{
			return new BuyBpLevelScRsp(this);
		}

		// Token: 0x170004B4 RID: 1204
		// (get) Token: 0x06000FE2 RID: 4066 RVA: 0x0002EC4D File Offset: 0x0002CE4D
		// (set) Token: 0x06000FE3 RID: 4067 RVA: 0x0002EC55 File Offset: 0x0002CE55
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06000FE4 RID: 4068 RVA: 0x0002EC5E File Offset: 0x0002CE5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuyBpLevelScRsp);
		}

		// Token: 0x06000FE5 RID: 4069 RVA: 0x0002EC6C File Offset: 0x0002CE6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuyBpLevelScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000FE6 RID: 4070 RVA: 0x0002EC9C File Offset: 0x0002CE9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000FE7 RID: 4071 RVA: 0x0002ECDB File Offset: 0x0002CEDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000FE8 RID: 4072 RVA: 0x0002ECE3 File Offset: 0x0002CEE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000FE9 RID: 4073 RVA: 0x0002ECEC File Offset: 0x0002CEEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000FEA RID: 4074 RVA: 0x0002ED20 File Offset: 0x0002CF20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000FEB RID: 4075 RVA: 0x0002ED5E File Offset: 0x0002CF5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuyBpLevelScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000FEC RID: 4076 RVA: 0x0002ED8F File Offset: 0x0002CF8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000FED RID: 4077 RVA: 0x0002ED98 File Offset: 0x0002CF98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040006BF RID: 1727
		private static readonly MessageParser<BuyBpLevelScRsp> _parser = new MessageParser<BuyBpLevelScRsp>(() => new BuyBpLevelScRsp());

		// Token: 0x040006C0 RID: 1728
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006C1 RID: 1729
		public const int RetcodeFieldNumber = 9;

		// Token: 0x040006C2 RID: 1730
		private uint retcode_;
	}
}
